
public class Student extends Person {

	private String StudentId;
	private double GPA;
	public String Advisor;
	
	public Student()
	{
		this.StudentId = "13242";
		this.GPA = 1.0;
		this.Advisor = "George";
	}
	
	public Student(String _FirstName, String _LastName, String _SSN, String StudentID, double GPA, String Advisor)
	{
		super(_FirstName, _LastName, _SSN );
		this.StudentId = StudentID;
		this.Advisor = Advisor;
		this.GPA = GPA;
	}
	
	public String getStudentID()
	{
		return this.StudentId;
	}
	@Override
	public boolean equals(Object object)
	{
		if(object == null) return false;
		if(((Student) object).getStudentID() == (this.getStudentID())) return true;
		else return false;
	}
	@Override
	public int hashCode()
	{
		return this.StudentId.hashCode();
	}
	
	public String toString()
	{
		return super.toString() + " is a student with the advisor of " + Advisor + " with a GPA of " + this.GPA + " and a student ID of " + this.StudentId;
	}
	
}
